<p class="pageTitle"><%= l(:common, :editing) %> - <%= link_to @artwork.name, admin_artwork_url(@artwork) %> - <%=Media.l_name.capitalize %></p>

<%= error_messages_for :media %>

<% tabnav :artwork do %>
  <p><%= l(:help, 'new artwork', :req_media) %></p>
  <%= render :partial => 'admin/medias/index', :object => @artwork %>
  <hr />

  <strong>Add new media:</strong>
  <div id='add_media'>
    <%= form_tag({:action => "add"}, :multipart => true) %>
      <%= render :partial => 'admin/medias/new_media', :locals => {:artwork => @artwork, :type => :artwork, :form => nil } %>
    </form>
  </div>
<% end %>